package com.yang.controller.admin;

import com.yang.bean.common.BaseRespVo;
import com.yang.bean.fxy.vo.DashboardVo;
import com.yang.service.admin.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AdminController
 * @Description:
 * @Author TrueEnd
 * @Date 2022/9/6
 * @Version
 **/
@RestController
@RequestMapping("admin")
public class AdminController {

    @Autowired
    AdminService adminService;


    @RequestMapping("profile/nnotice")
    @ResponseBody
//    不跳通知
    public BaseRespVo nnotice(){
        BaseRespVo baseRespVo=BaseRespVo.ok(0);
        return baseRespVo;
    }

    @RequestMapping("dashboard")
    @ResponseBody
//    显示首页
    public BaseRespVo dashboard() {
        DashboardVo dashboardVo=adminService.dashboard();
        BaseRespVo baseRespVo=BaseRespVo.ok(dashboardVo);
        return baseRespVo;
    }



}
